home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-02-26 | 7.4 KB | 226 lines | [TEXT/MPS ] |
- ; File: E16.Window
- ;
- ;
- ; Copyright Apple Computer, Inc. 1986-92
- ; All Rights Reserved
- ;
- ;
- paramLenErr GEQU $0E01 ; first word of parameter list is the wrong size
- allocateErr GEQU $0E02 ; unable to allocate window record
- taskMaskErr GEQU $0E03 ; reserved bits are not clear in wmTaskMask
- compileTooLarge GEQU $0E04 ; Compiled text is larger than 64 KB
- wNoConstraint GEQU $0000 ; No constraint on movement.
- wHAxisOnly GEQU $0001 ; Horizontal axis only.
- wVAxisOnly GEQU $0002 ; Vertical axis only.
- FromDesk GEQU $00 ; Subtract region from desktop
- ToDesk GEQU $1 ; Add region to desktop
- GetDesktop GEQU $2 ; Get Handle of Desktop region
- SetDesktop GEQU $3 ; Set Handle of Desktop region
- GetDeskPat GEQU $4 ; Address of pattern or drawing routine
- SetDeskPat GEQU $5 ; Change Address of pattern or drawing routine
- GetVisDesktop GEQU $6 ; Get destop region less visible windows.
- BackGroundRgn GEQU $7 ; For drawing directly on desktop.
- CheckForNewDeskMsg GEQU $8 ; Force rechecking message #2
- toBottom GEQU $FFFFFFFE ; To send window to bottom.
- topMost GEQU $FFFFFFFF ; To make window top.
- bottomMost GEQU $0000 ; To make window bottom.
- tmMenuKey GEQU $00000001
- tmUpdate GEQU $00000002
- tmFindW GEQU $00000004
- tmMenuSel GEQU $0008
- tmOpenNDA GEQU $0010
- tmSysClick GEQU $0020
- tmDragW GEQU $0040
- tmContent GEQU $0080
- tmClose GEQU $0100
- tmZoom GEQU $0200
- tmGrow GEQU $0400
- tmScroll GEQU $0800
- tmSpecial GEQU $1000
- tmCRedraw GEQU $2000
- tmInactive GEQU $4000
- tmInfo GEQU $8000
- tmContentControls GEQU $00010000
- tmControlKey GEQU $00020000
- tmControlMenu GEQU $00040000
- tmMultiClick GEQU $00080000
- tmIdleEvents GEQU $00100000
- wNoHit GEQU $0000 ; retained for back compatibility.
- inNull GEQU $0000 ; retained for back compatibility
- inKey GEQU $0003 ; retained for back compatibility
- inButtDwn GEQU $0001 ; retained for back compatibility
- inUpdate GEQU $0006 ; retained for back compatibility
- wInDesk GEQU $0010 ; On Desktop
- wInMenuBar GEQU $0011 ; On system menu bar
- wClickCalled GEQU $0012 ; system click called
- wInContent GEQU $0013 ; In content region
- wInDrag GEQU $0014 ; In drag region
- wInGrow GEQU $0015 ; In grow region, active window only
- wInGoAway GEQU $0016 ; In go-away region, active window only
- wInZoom GEQU $0017 ; In zoom region, active window only
- wInInfo GEQU $0018 ; In information bar
- wInSpecial GEQU $0019 ; Item ID selected was 250 - 255
- wInDeskItem GEQU $001A ; Item ID selected was 1 - 249
- wInFrame GEQU $1B ; in Frame, but not on anything else
- wInactMenu GEQU $1C ; 'selection' of inactive menu item
- wClosedNDA GEQU $001D ; desk accessory closed
- wCalledSysEdit GEQU $001E ; inactive menu item selected
- wInSysWindow GEQU $8000 ; hi bit set for system windows
- wDraw GEQU $00 ; Draw window frame command.
- wHit GEQU $01 ; Hit test command.
- wCalcRgns GEQU $02 ; Compute regions command.
- wNew GEQU $03 ; Initialization command.
- wDispose GEQU $04 ; Dispose command.
- wGetDrag GEQU 5 ; Return address of outline drawing handler
- wGrowFrame GEQU 6 ; Draw outline of window being resized
- wRecSize GEQU 7 ; Return size of additional space neeed in the windrec
- wPos GEQU 8 ; Return RECT that is the window's portRect
- wBehind GEQU 9 ; Return where the window should be placed in the list
- wCallDefProc GEQU 10 ; Generic call to the defproc
- fHilited GEQU $0001 ; Window is highlighted.
- fZoomed GEQU $0002 ; Window is zoomed.
- fAllocated GEQU $0004 ; Window record was allocated.
- fCtlTie GEQU $0008 ; Window state tied to controls.
- fInfo GEQU $0010 ; Window has an information bar.
- fVis GEQU $0020 ; Window is visible.
- fQContent GEQU $0040
- fMove GEQU $0080 ; Window is movable.
- fZoom GEQU $0100 ; Window is zoomable.
- fFlex GEQU $0200
- fGrow GEQU $0400 ; Window has grow box.
- fBScroll GEQU $0800 ; Window has horizontal scroll bar.
- fRScroll GEQU $1000 ; Window has vertical scroll bar.
- fAlert GEQU $2000
- fClose GEQU $4000 ; Window has a close box.
- fTitle GEQU $8000 ; Window has a title bar.
- windSize GEQU $00D4 ; Size of WindRec.
- wmTaskRecSize GEQU $002E ; Size of WmTaskRec.
- wTrackZoom GEQU $001F
- wHitFrame GEQU $0020
- wInControl GEQU $0021
- wInControlMenu GEQU $0022
- ; offset constants for WindColor
- oframeColor GEQU 0
- otitleColor GEQU 2
- otBarColor GEQU 4
- ogrowColor GEQU 6
- oinfoColor GEQU 8
- ; offset constants for WindRec
- ;owNext GEQU 0 <- not included in record returned by toolbox calls
- oport GEQU 0 ; Window's port
- owDefProc GEQU oport+170
- owrRefCon GEQU owDefProc+4
- owContDraw GEQU owrRefCon+4
- owReserved GEQU owContDraw+4 ; Space for future expansion
- owStrucRgn GEQU owReserved+4 ; Region of frame plus content.
- owContRgn GEQU owStrucRgn+4 ; Content region.
- owUpdateRgn GEQU owContRgn+4 ; Update region.
- owControls GEQU owUpdateRgn+4 ; Window's control list.
- owFrameCtrls GEQU owControls+4 ; Window frame's control list.
- owFrame GEQU owFrameCtrls+4
- ; offset constants for ParamList
- oparamLength GEQU 0 ; Parameter to NewWindow.
- owFrameBits GEQU 2 ; Parameter to NewWindow.
- owTitle GEQU 4 ; Parameter to NewWindow.
- owRefCon GEQU 8 ; Parameter to NewWindow.
- owZoom GEQU 12 ; Parameter to NewWindow.
- owColor GEQU 20 ; Parameter to NewWindow.
- owYOrigin GEQU 24 ; Parameter to NewWindow.
- owXOrigin GEQU 26 ; Parameter to NewWindow.
- owDataH GEQU 28 ; Parameter to NewWindow.
- owDataW GEQU 30 ; Parameter to NewWindow.
- owMaxH GEQU 32 ; Parameter to NewWindow.
- owMaxW GEQU 34 ; Parameter to NewWindow.
- owScrollVer GEQU 36 ; Parameter to NewWindow.
- owScrollHor GEQU 38 ; Parameter to NewWindow.
- owPageVer GEQU 40 ; Parameter to NewWindow.
- owPageHor GEQU 42 ; Parameter to NewWindow.
- owInfoRefCon GEQU 44 ; Parameter to NewWindow.
- owInfoHeight GEQU 48 ; height of information bar
- owFrameDefProc GEQU 50 ; Parameter to NewWindow.
- owInfoDefProc GEQU 54 ; Parameter to NewWindow.
- owContDefProc GEQU 58 ; Parameter to NewWindow.
- owPosition GEQU 62 ; Parameter to NewWindow.
- owPlane GEQU 70 ; Parameter to NewWindow.
- owStorage GEQU 74 ; Parameter to NewWindow.
- ; offset constants for DeskMessageRecord
- odmreserved GEQU 0
- odmmessageType GEQU 4
- odmdrawType GEQU 6
-
- ; DoModalWindow flag values
- mwMovable GEQU $8000
- mwUpdateAll GEQU $4000
- mwDeskAcc GEQU $0010
- mwIBeam GEQU $0008
- mwMenuKey GEQU $0004
- mwMenuSelect GEQU $0002
- mwNoScrapForLE GEQU $0001
-
- ; HandleDiskInsert flag values (bit flags)
- hdiScan GEQU $8000
- hdiHandle GEQU $4000
- hdiUpdate GEQU $2000
- hdiReportEjects GEQU $1000
- hdiNoDelay GEQU $0800
- hdiDupDisk GEQU $0400
- hdiCheckTapeDrives GEQU $0200
- hdiUnreadable GEQU $0100
- hdiMarkOffline GEQU $0001
-
- ; HandleDiskInsert result flag values (bit flags)
- hdiFormatted GEQU $0002
- hdiEjection GEQU $0001
-
- ; constants for AlertWindow alertFlags
- awCString GEQU $0000
- awPString GEQU $0001
- awPointer GEQU $0000
- awHandle GEQU $0002
- awResource GEQU $0004
- awTextFullWidth GEQU $0008
- awForceBeep GEQU $0010
- awButtonLayout GEQU $0020
- awNoDevScan GEQU $0040
- awNoDisposeRes GEQU $0080
- awWatchForDisk GEQU $0100
- awIconIsResource GEQU $0200
- awFullColor GEQU $0400
-
- ; custom defproc dRequest codes (from TN #42)
- wSetOrgMask GEQU 0
- wSetMaxGrow GEQU 1
- wSetScroll GEQU 2
- wSetPage GEQU 3
- wSetInfoRefCon GEQU 4
- wSetInfoDraw GEQU 5
- wSetOrigin GEQU 6
- wSetDataSize GEQU 7
- wSetZoomRect GEQU 8
- wSetTitle GEQU 9
- wSetColorTable GEQU 10
- wSetFrameFlag GEQU 11
- wGetOrgMask GEQU 12
- wGetMaxGrow GEQU 13
- wGetScroll GEQU 14
- wGetPage GEQU 15
- wGetInfoRefCon GEQU 16
- wGetInfoDraw GEQU 17
- wGetOrigin GEQU 18
- wGetDataSize GEQU 19
- wGetZoomRect GEQU 20
- wGetTitle GEQU 21
- wGetColorTable GEQU 22
- wGetFrameFlag GEQU 23
- wGetInfoRect GEQU 24
- wGetDrawInfo GEQU 25
- wGetStartInfoDraw GEQU 26
- wGetEndInfoDraw GEQU 27
- wZoomWindow GEQU 28
- wStartDrawing GEQU 29
- wStartMove GEQU 30
- wStartGrow GEQU 31
- wNewSize GEQU 32
- wTask GEQU 33
-
-